package com.lanhai.ads.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RptStateTimeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public RptStateTimeExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andWorkdayIsNull() {
            addCriterion("workday is null");
            return (Criteria) this;
        }

        public Criteria andWorkdayIsNotNull() {
            addCriterion("workday is not null");
            return (Criteria) this;
        }

        public Criteria andWorkdayEqualTo(Date value) {
            addCriterionForJDBCDate("workday =", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayNotEqualTo(Date value) {
            addCriterionForJDBCDate("workday <>", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayGreaterThan(Date value) {
            addCriterionForJDBCDate("workday >", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("workday >=", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayLessThan(Date value) {
            addCriterionForJDBCDate("workday <", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("workday <=", value, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayIn(List<Date> values) {
            addCriterionForJDBCDate("workday in", values, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayNotIn(List<Date> values) {
            addCriterionForJDBCDate("workday not in", values, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("workday between", value1, value2, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkdayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("workday not between", value1, value2, "workday");
            return (Criteria) this;
        }

        public Criteria andWorkShiftIsNull() {
            addCriterion("work_shift is null");
            return (Criteria) this;
        }

        public Criteria andWorkShiftIsNotNull() {
            addCriterion("work_shift is not null");
            return (Criteria) this;
        }

        public Criteria andWorkShiftEqualTo(String value) {
            addCriterion("work_shift =", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftNotEqualTo(String value) {
            addCriterion("work_shift <>", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftGreaterThan(String value) {
            addCriterion("work_shift >", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftGreaterThanOrEqualTo(String value) {
            addCriterion("work_shift >=", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftLessThan(String value) {
            addCriterion("work_shift <", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftLessThanOrEqualTo(String value) {
            addCriterion("work_shift <=", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftLike(String value) {
            addCriterion("work_shift like", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftNotLike(String value) {
            addCriterion("work_shift not like", value, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftIn(List<String> values) {
            addCriterion("work_shift in", values, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftNotIn(List<String> values) {
            addCriterion("work_shift not in", values, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftBetween(String value1, String value2) {
            addCriterion("work_shift between", value1, value2, "workShift");
            return (Criteria) this;
        }

        public Criteria andWorkShiftNotBetween(String value1, String value2) {
            addCriterion("work_shift not between", value1, value2, "workShift");
            return (Criteria) this;
        }

        public Criteria andAgvIdIsNull() {
            addCriterion("agv_id is null");
            return (Criteria) this;
        }

        public Criteria andAgvIdIsNotNull() {
            addCriterion("agv_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgvIdEqualTo(Integer value) {
            addCriterion("agv_id =", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdNotEqualTo(Integer value) {
            addCriterion("agv_id <>", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdGreaterThan(Integer value) {
            addCriterion("agv_id >", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agv_id >=", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdLessThan(Integer value) {
            addCriterion("agv_id <", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdLessThanOrEqualTo(Integer value) {
            addCriterion("agv_id <=", value, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdIn(List<Integer> values) {
            addCriterion("agv_id in", values, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdNotIn(List<Integer> values) {
            addCriterion("agv_id not in", values, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdBetween(Integer value1, Integer value2) {
            addCriterion("agv_id between", value1, value2, "agvId");
            return (Criteria) this;
        }

        public Criteria andAgvIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agv_id not between", value1, value2, "agvId");
            return (Criteria) this;
        }

        public Criteria andRunningIsNull() {
            addCriterion("running is null");
            return (Criteria) this;
        }

        public Criteria andRunningIsNotNull() {
            addCriterion("running is not null");
            return (Criteria) this;
        }

        public Criteria andRunningEqualTo(Integer value) {
            addCriterion("running =", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningNotEqualTo(Integer value) {
            addCriterion("running <>", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningGreaterThan(Integer value) {
            addCriterion("running >", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningGreaterThanOrEqualTo(Integer value) {
            addCriterion("running >=", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningLessThan(Integer value) {
            addCriterion("running <", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningLessThanOrEqualTo(Integer value) {
            addCriterion("running <=", value, "running");
            return (Criteria) this;
        }

        public Criteria andRunningIn(List<Integer> values) {
            addCriterion("running in", values, "running");
            return (Criteria) this;
        }

        public Criteria andRunningNotIn(List<Integer> values) {
            addCriterion("running not in", values, "running");
            return (Criteria) this;
        }

        public Criteria andRunningBetween(Integer value1, Integer value2) {
            addCriterion("running between", value1, value2, "running");
            return (Criteria) this;
        }

        public Criteria andRunningNotBetween(Integer value1, Integer value2) {
            addCriterion("running not between", value1, value2, "running");
            return (Criteria) this;
        }

        public Criteria andTransferInIsNull() {
            addCriterion("transfer_in is null");
            return (Criteria) this;
        }

        public Criteria andTransferInIsNotNull() {
            addCriterion("transfer_in is not null");
            return (Criteria) this;
        }

        public Criteria andTransferInEqualTo(Integer value) {
            addCriterion("transfer_in =", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInNotEqualTo(Integer value) {
            addCriterion("transfer_in <>", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInGreaterThan(Integer value) {
            addCriterion("transfer_in >", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInGreaterThanOrEqualTo(Integer value) {
            addCriterion("transfer_in >=", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInLessThan(Integer value) {
            addCriterion("transfer_in <", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInLessThanOrEqualTo(Integer value) {
            addCriterion("transfer_in <=", value, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInIn(List<Integer> values) {
            addCriterion("transfer_in in", values, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInNotIn(List<Integer> values) {
            addCriterion("transfer_in not in", values, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInBetween(Integer value1, Integer value2) {
            addCriterion("transfer_in between", value1, value2, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferInNotBetween(Integer value1, Integer value2) {
            addCriterion("transfer_in not between", value1, value2, "transferIn");
            return (Criteria) this;
        }

        public Criteria andTransferOutIsNull() {
            addCriterion("transfer_out is null");
            return (Criteria) this;
        }

        public Criteria andTransferOutIsNotNull() {
            addCriterion("transfer_out is not null");
            return (Criteria) this;
        }

        public Criteria andTransferOutEqualTo(Integer value) {
            addCriterion("transfer_out =", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutNotEqualTo(Integer value) {
            addCriterion("transfer_out <>", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutGreaterThan(Integer value) {
            addCriterion("transfer_out >", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutGreaterThanOrEqualTo(Integer value) {
            addCriterion("transfer_out >=", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutLessThan(Integer value) {
            addCriterion("transfer_out <", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutLessThanOrEqualTo(Integer value) {
            addCriterion("transfer_out <=", value, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutIn(List<Integer> values) {
            addCriterion("transfer_out in", values, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutNotIn(List<Integer> values) {
            addCriterion("transfer_out not in", values, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutBetween(Integer value1, Integer value2) {
            addCriterion("transfer_out between", value1, value2, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferOutNotBetween(Integer value1, Integer value2) {
            addCriterion("transfer_out not between", value1, value2, "transferOut");
            return (Criteria) this;
        }

        public Criteria andTransferInoutIsNull() {
            addCriterion("transfer_inout is null");
            return (Criteria) this;
        }

        public Criteria andTransferInoutIsNotNull() {
            addCriterion("transfer_inout is not null");
            return (Criteria) this;
        }

        public Criteria andTransferInoutEqualTo(Integer value) {
            addCriterion("transfer_inout =", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutNotEqualTo(Integer value) {
            addCriterion("transfer_inout <>", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutGreaterThan(Integer value) {
            addCriterion("transfer_inout >", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutGreaterThanOrEqualTo(Integer value) {
            addCriterion("transfer_inout >=", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutLessThan(Integer value) {
            addCriterion("transfer_inout <", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutLessThanOrEqualTo(Integer value) {
            addCriterion("transfer_inout <=", value, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutIn(List<Integer> values) {
            addCriterion("transfer_inout in", values, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutNotIn(List<Integer> values) {
            addCriterion("transfer_inout not in", values, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutBetween(Integer value1, Integer value2) {
            addCriterion("transfer_inout between", value1, value2, "transferInout");
            return (Criteria) this;
        }

        public Criteria andTransferInoutNotBetween(Integer value1, Integer value2) {
            addCriterion("transfer_inout not between", value1, value2, "transferInout");
            return (Criteria) this;
        }

        public Criteria andChargeIsNull() {
            addCriterion("charge is null");
            return (Criteria) this;
        }

        public Criteria andChargeIsNotNull() {
            addCriterion("charge is not null");
            return (Criteria) this;
        }

        public Criteria andChargeEqualTo(Integer value) {
            addCriterion("charge =", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeNotEqualTo(Integer value) {
            addCriterion("charge <>", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeGreaterThan(Integer value) {
            addCriterion("charge >", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeGreaterThanOrEqualTo(Integer value) {
            addCriterion("charge >=", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeLessThan(Integer value) {
            addCriterion("charge <", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeLessThanOrEqualTo(Integer value) {
            addCriterion("charge <=", value, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeIn(List<Integer> values) {
            addCriterion("charge in", values, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeNotIn(List<Integer> values) {
            addCriterion("charge not in", values, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeBetween(Integer value1, Integer value2) {
            addCriterion("charge between", value1, value2, "charge");
            return (Criteria) this;
        }

        public Criteria andChargeNotBetween(Integer value1, Integer value2) {
            addCriterion("charge not between", value1, value2, "charge");
            return (Criteria) this;
        }

        public Criteria andOtherIsNull() {
            addCriterion("other is null");
            return (Criteria) this;
        }

        public Criteria andOtherIsNotNull() {
            addCriterion("other is not null");
            return (Criteria) this;
        }

        public Criteria andOtherEqualTo(Integer value) {
            addCriterion("other =", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherNotEqualTo(Integer value) {
            addCriterion("other <>", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherGreaterThan(Integer value) {
            addCriterion("other >", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherGreaterThanOrEqualTo(Integer value) {
            addCriterion("other >=", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherLessThan(Integer value) {
            addCriterion("other <", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherLessThanOrEqualTo(Integer value) {
            addCriterion("other <=", value, "other");
            return (Criteria) this;
        }

        public Criteria andOtherIn(List<Integer> values) {
            addCriterion("other in", values, "other");
            return (Criteria) this;
        }

        public Criteria andOtherNotIn(List<Integer> values) {
            addCriterion("other not in", values, "other");
            return (Criteria) this;
        }

        public Criteria andOtherBetween(Integer value1, Integer value2) {
            addCriterion("other between", value1, value2, "other");
            return (Criteria) this;
        }

        public Criteria andOtherNotBetween(Integer value1, Integer value2) {
            addCriterion("other not between", value1, value2, "other");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}